<style>
/*    .table tr td {   
       
    }*/
    .table-striped tbody tr:hover td, .table-striped tbody tr:hover th {
        background-color: white;
    }
    .table-striped tbody tr:nth-child(odd) td, .table-striped tbody tr:nth-child(odd) th,.table-striped tbody tr:nth-child(even) td, .table-striped tbody tr:nth-child(even) th {
        background-color: white;
        border: none;
    }
   
</style>
<div id="editRole<?php echo $member['ProjectMember']['user_id'];?>" class="modal hide fade in" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >
                    
    
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h3 id="myModalLabel">Editar Rol </h3>
        
    </div>
    <div class="modal-body">
        <?php 
            echo $this->Form->create('ProjectMember',array('url' => '../projects/editRole', 'class'=>'form-horizontal')); 
            echo $this->Form->input('user_id', array('type' => 'hidden','value'=>$member['ProjectMember']['user_id']));
            echo $this->Form->input('project_id', array('type' => 'hidden','value'=>$member['ProjectMember']['project_id']));
        ?>
        <fieldset> 
            <table class="table table-striped" style=" border: none;
       
        background: white;">
                <?php foreach($roles as $r){ 
                    
                    if ($r['Role']['description']=="ScrumMaster") $label =  "label-success";
                    elseif ($r['Role']['description']=="Propietario") $label =  "label-info";
                    elseif ($r['Role']['description']=="Equipo") $label =  "label-inverse";
                    else $label =  "label-default";
                    
                    if ($member['ProjectMember']['role_id']==$r['Role']['id']) $ch='checked="checked"';
                    else $ch="";
                    ?>
                    <tr> <td>
                        <input type="radio" name="data[ProjectMember][role_id]" id="ProjectMemberState<?php  echo $r['Role']['id']; ?>" value="<?php  echo $r['Role']['id']; ?>" <?php  echo $ch; ?>> <span class="label <?php echo $label;?>"><?php  echo $r['Role']['description']; ?></span>
                    </td></tr>
                <?php }?>
               
                
            </table>

      
            
            
        </fieldset>

    </div>
    <div class="modal-footer">
        <div class="row-fluid " >
            <div class="span12">
                <div class="span8">                      
                </div>
                <div class="span2">
                    <button class="btn" data-dismiss="modal">Cancelar</button>
                </div>
                <div class="span2">
                    <?php
                    $options = array(
                        'label' => 'Guardar','class' => 'btn'
                    );
                    echo $this->Form->end($options);
                    ?>
                </div>
            </div>
        </div>
    </div>
    
</div>
